package interfaces;
 
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.WindowConstants;
 
public class IAgenda extends JFrame {
        private JButton eventos;
        private JButton contatos;
        private JButton voltar;
        private JPanel painel1;
        private JPanel painelglobal;
        private JLabel label1;
        private JLabel label2;
        private JLabel label3;
        private JDesktopPane desktop;
 
        
        public IAgenda(){
                
        	super("Agenda");
        	this.setSize(515,400);
        	this.setUndecorated(false);
        	FlowLayout layoutc = new FlowLayout(FlowLayout.CENTER);
                        
        	//	label
        	label1 = new JLabel(new ImageIcon("src/images/meninos1.gif"));
        	label1.setBounds(230,143,400,300);
        	label2 = new JLabel(new ImageIcon("src/images/meninos3.gif"));
        	label2.setBounds(-120,142,400,300);
        	label3 = new JLabel(new ImageIcon("src/images/meninos2.gif"));
        	label3.setBounds(60,142,400,300);
        	//	Desktop
        	desktop = new JDesktopPane();
        	desktop.setBackground(Color.WHITE);
        	//Butoes
        
        	eventos = new JButton("Eventos");
        	eventos.setIcon(new
        			ImageIcon("src/images/eventos.png"));
        	eventos.setBounds(5,5,90,72);
        	eventos.setBackground(Color.WHITE);
        	eventos.setHorizontalTextPosition(SwingConstants.CENTER);
        	eventos.setVerticalAlignment(SwingConstants.TOP);
        	eventos.setVerticalTextPosition(SwingConstants.BOTTOM);
        	eventos.addActionListener(new ActionListener() {
        		public void actionPerformed(ActionEvent e) {
        			eventosActionPerformed(e);
        		}
        	});
                
        	contatos = new JButton("Contatos");
        	contatos.setIcon(new
        			ImageIcon("src/images/contatos.png"));
        	contatos.setBounds(100,5,90,72);
        	contatos.setBackground(Color.WHITE);
        	contatos.setHorizontalTextPosition(SwingConstants.CENTER);
        	contatos.setVerticalAlignment(SwingConstants.TOP);
        	contatos.setVerticalTextPosition(SwingConstants.BOTTOM);
        	contatos.addActionListener(new ActionListener() {
        		public void actionPerformed(ActionEvent e) {
        			contatosActionPerformed(e);
        		}
        	});

                
        	voltar = new JButton("Voltar");
        	voltar.setIcon(new
        			ImageIcon("src/images/back.png"));
        	voltar.setBounds(415,5,90,72);
        	voltar.setBackground(Color.WHITE);
        	voltar.setHorizontalTextPosition(SwingConstants.CENTER);
        	voltar.setVerticalAlignment(SwingConstants.TOP);
        	voltar.setVerticalTextPosition(SwingConstants.BOTTOM);
        	voltar.addActionListener(new ActionListener() {
        		public void actionPerformed(ActionEvent e) {
        			voltarActionPerformed(e);
        		}
        	});
        	//paineis
        	painel1 = new JPanel(layoutc);
        	painelglobal = new JPanel(layoutc);
                
        	JButton bla = new JButton("teste");
                
        	//adds
        	desktop.add(eventos);
        	desktop.add(contatos);
        	desktop.add(voltar);
        	desktop.add(label1);
        	desktop.add(label2);
        	desktop.add(label3);

        	this.setContentPane(desktop);
                
        	this.setResizable(false);
        	this.setVisible(false);
        	this.setDefaultCloseOperation( WindowConstants.
        											EXIT_ON_CLOSE);
        	
        }
    	public void contatosActionPerformed(ActionEvent e) {

    	}
    	public void eventosActionPerformed(ActionEvent e) {

    	}
    	public void voltarActionPerformed(ActionEvent e) {

    	}
        public static void main(String[] args){
                IAgenda bla = new IAgenda(); 
        }
}
 